package org.linlinjava.litemall.db.config;

import org.beetl.sql.core.SQLManager;
import org.beetl.sql.core.query.LambdaQuery;

public class ItexLambdaQuery<T> extends LambdaQuery<T> {

	public ItexLambdaQuery(SQLManager sqlManager, Class<T> clazz) {
		super(sqlManager, clazz);
	}
	
	@Override
	public LambdaQuery<T> limit(long startRow, long pageSize) {
		if(startRow == 0 ) {
			return super.limit(startRow+1, pageSize);
		}else {
			return super.limit(startRow, pageSize);
		}
		
	}

}
